import {
	HelloWorld,
	Attr,
	P404
} from '@/views'

/* export const asyncRouterMap = [
	// 有权限的页面
  {
    path: '/',
    name: 'sysUser',
    component: BasicLayout,
    meta: { title: '首页' },
    redirect: '/sysUser/userList',
    children: [
      {
        path: '/sysUser',
        name: 'sysRole',
        redirect: '/sysRole/userList',
        component: RouteView,
        meta: { title: '后台权限管理', permission: ['sysUserConfig'] },
        children: [
          {
            path: '/sysRole/userList',
            name: 'UserList',
            component: () => import('@/views/permissionsUser/userList'),
            meta: { title: '用户信息', permission: ['sysUserInfo'], keepAlive: true }
          }
        ]
      }
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
] */

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/hello',
    component: HelloWorld,
    children: [
      {
        path: 'hello',
        name: 'hello',
        component: () => import(/* webpackChunkName: "user" */ '@/components/HelloWorld')
      }
    ]
  },
	{
		path: '/attr',
		component: Attr,
		children: [
			{
				path: 'attr',
				name: 'attr',
				component: () => import(/* webpackChunkName: "user" */ '@/components/Attr')
			}
		]
	},
  {
    path: '/404',
    component: () => import(P404)
  }
]
